package com.wm.teach;
//姓名、性别、年龄、教龄、所在中心。
public abstract class Teacher {
    private String name;
    private String strain;
    private int age;
    private int teachYear;
    private String center;

    public Teacher(String name, String strain, int age, int teachYear, String center) {
        this.name = name;
        this.strain = strain;
        this.age = age;
        this.teachYear = teachYear;
        this.center = center;
    }

    public Teacher() {
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getStrain() {
        return strain;
    }

    public void setStrain(String strain) {
        this.strain = strain;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public int getTeachYear() {
        return teachYear;
    }

    public void setTeachYear(int teachYear) {
        this.teachYear = teachYear;
    }

    public String getCenter() {
        return center;
    }

    public void setCenter(String center) {
        this.center = center;
    }

    public abstract void teaching();

    public void showInfo(){
        System.out.println("姓名:" + this.getName());
        System.out.println("性别:" + this.getStrain());
        System.out.println("年龄:" + this.getAge() + "岁");
        System.out.println("教龄:" + this.getTeachYear() + "年");
        System.out.println("所在中心:" + this.getCenter());


    }
}
